<%@page isELIgnored="false" pageEncoding="UTF-8" contentType="text/html; UTF-8" %>

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>页面</title>
		<link rel="stylesheet" href="${pageContext.request.contextPath}/ztree/css/metroStyle/metroStyle.css" type="text/css">
		<script type="text/javascript" src="${pageContext.request.contextPath}/ztree/js/jquery-1.4.4.min.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/ztree/js/jquery.ztree.core.js"></script>
	</head>
	
	<body >

	<ul id="treeDemo" class="ztree"></ul>

	<script>
		var setting = {	};

		$(document).ready(function(){
			$.ajax({
				url:"${pageContext.request.contextPath}/menu/getZtreeNodes",
				success:function (data) {
					$.fn.zTree.init($("#treeDemo"), setting, data);
				}
			})
		});
	</script>
	</body>

</html>
